from core.support import render_page, get_game
from core.form import FormHandler
import logging

class BinarySoloFormHandler(FormHandler):    
    
    #def __init__(self):
    #    FormHandler.__init__(self)
        
    # Get Abstract methods
    ######################

    def get_template(self, request, game):
        return "cpuform.html"

    def update_parameters(self, request, game, parameters):
        return parameters

    # Post Abstract methods
    #######################
    
    def update_game(self, request, game):
        number = request.get("binary_number")
        game.number = number
        logging.info("The data: " + number)
    
    def get_destination(self, request, game):
        return "Binary_Monster"
